package com.wayne.security.config;

import org.springframework.security.authentication.AuthenticationDetailsSource;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

@Component
public class MyWebAuthenticationDetailsSource implements AuthenticationDetailsSource<HttpServletRequest, MyWebAuthenticationDetails> {
  @Override
  public MyWebAuthenticationDetails buildDetails(HttpServletRequest req) {
    return new MyWebAuthenticationDetails(req);
  }
}
